package com.team1.system.stats.controller;

import com.team1.system.libraryident.domain.LibraryIdent;
import com.team1.system.libraryident.service.ILibraryIdentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
public class StatsIdentController {
    @Autowired
    private ILibraryIdentService libraryIdentService;

    public int notCertified(){
        LibraryIdent libraryIdent = new LibraryIdent();
        List<LibraryIdent> list = libraryIdentService.selectLibraryIdentList(libraryIdent);
        int sum = 0;
        for(LibraryIdent l:list){
            if(l.getIdentIs().equals("0")){
                sum = sum + 1;
            }
        }
        return sum;
    }
}


